package myschool.myshchool15.homework;

import java.util.Scanner;

public class Discount {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int shirt = 245;
        int shoes = 570;
        int racket = 320;
        System.out.println("请输入折扣：");
        double discount = input.nextDouble();
        if(discount > 0 && discount <= 1){
            boolean discountNo;
            if((shirt*discount)<100){
                discountNo = true;

            }else{
                discountNo = false;
            }
            System.out.println("T恤折扣价低于100吗？"+discountNo);
            if((shoes*discount)<100){
                discountNo = true;

            }else{
                discountNo = false;
            }
            System.out.println("网球鞋折扣价低于100吗？"+discountNo);
            if((racket*discount)<100){
                discountNo = true;

            }else{
                discountNo = false;
            }
            System.out.println("网球拍折扣价低于100吗？"+discountNo);

        }else{
            System.out.println("请输入正确的折扣");
        }

    }
}
